<?php
namespace app\admin\controller;

class Brand extends Adm
{
	use \app\admin\traits\Curd;
    public function index()
    {
    	$reflec_obj = new \ReflectionClass(get_called_class());
		$funcs = $reflec_obj->getMethods(\ReflectionMethod::IS_PUBLIC);
		foreach($funcs as $item){
			// echo $item->name.'|';
		}
    	return $this->fetch();
    }
    /**
     * [upload description]
     * @return [type] [description]
     */
    public function upload()
    {
    	$file = $this->request->file('file');
    	return $this->saveFile($file,'brand');
    }
}
